lib/omisego/transaction.rb in omisego-0.9.6 vs lib/omisego/transaction.rb in omisego-0.10.0

- old
+ new

@@ -21,11 +21,22 @@ body = { provider_user_id: provider_user_id, address: address } - request(client).send('user.list_transactions', body, params: params).data + request(client).send('user.get_transactions', body, params: params).data end + end + + def create(from_address:, to_address:, token_id:, amount:, metadata: {}, encrypted_metadata: {}) + request(client).send('transfer', { + from_address: from_address, + to_address: to_address, + token_id: token_id, + amount: amount, + metadata: metadata, + encrypted_metadata: encrypted_metadata + }, params: params).data end def from @_from ||= TransactionSource.new(@from) end