Methods
Address
The result of each one of the following address methods return one or an array of Address objects that include the following methods:
getAsset: Returns theassetof theaddressassetCode.getData: Returns theaddressdetails.getWallet: Returns thewalletof theaddresswalletIdif set.
address.create
address.createCreates a new address.
Example:
Request
await slyk.address.create({
address: '1AyzfnxYZPeqgS3j3L5vfnUTkxVZ3FhGMp',
assetCode: 'btc',
walletId: '9afa8a2d-023a-4040-b591-c03077f43d23'
});Response
{
"address": "1AyzfnxYZPeqgS3j3L5vfnUTkxVZ3FhGMp",
"assetCode": "btc",
"customData": {},
"createdAt": "2019-03-20T14:30:37.483Z",
"metadata": {},
"updatedAt": "2019-03-20T14:30:37.483Z",
"walletId": "9afa8a2d-023a-4040-b591-c03077f43d23"
}address.get
address.getRetrieves the address of the given address.
Example:
Request
Response
address.list
address.listRetrieves a list of addresses.
Example:
Request
Response
Asset
The result of each one of the following asset methods return one or an array of Asset objects that include the following methods:
getConnection: Returns theconnectionof theassetconnectionIdif set.getData: Returns theassetdetails.patch: Patches theasset.
asset.create
asset.createCreates a new asset.
Example:
Request
Response
asset.get
asset.getRetrieves the asset of the given code.
Example:
Request
Response
asset.list
asset.listRetrieves a list of assets.
Example:
Request
Response
asset.patch
asset.patchModifies the details the asset of the given code.
Example:
Request
Response
Invite
The result of each one of the following invite methods return one or an array of Invite objects that include the following methods:
cancel: Cancels theinvite.getData: Returns theinvitedetails.getInvitedUser: Returns theuserof theinviteinvitedUserIdif set.getInviterUser: Returns theuserof theinviteinviterUserIdif set.validate: Validates theinvite.
invite.cancel
invite.cancelCancels the invite of the given code.
Example:
Request
Response
invite.create
invite.createCreates a new invite.
Example:
Request
Response
invite.get
invite.getRetrieves the invite of the given code.
Example:
Request
Response
invite.list
invite.listRetrieves a list of invites.
Example:
Request
Response
invite.send
invite.sendCreates and sends a one or multiples invite.
Example:
Request
Response
invite.validate
invite.validateValidates the invite with the given code.
Example:
Request
Response
Movement
The result of each one of the following movement methods return one or an array of Movement objects that include the following methods:
getAsset: Returns theassetof themovementassetCode.getData: Returns themovementdetails.getWallet: Returns thewalletof themovementwalletId.getTransaction: Returns thetransactionof themovementtransactionId.
movement.get
movement.getReturns the movement of the given id.
Example:
Request
Response
movement.list
movement.listRetrieves a list of movements.
Example:
Request
Response
Payment Method
paymentMethod.get
paymentMethod.getReturns the paymentMethod of the given slug.
getData: Returns thepaymentMethoddetails.
Example:
Request
Response
paymentMethod.list
paymentMethod.listRetrieves a list of paymentMethod.
Example:
Request
Response
Rate
The result of each one of the following rate methods return one or an array of Rate objects that include the following methods:
getBaseAsset: Returns theassetof theratebaseAssetCode.getData: Returns theratedetails.getQuoteAsset: Returns theassetof theratequoteAssetCode.patch: Patches therate.
rate.create
rate.createCreates a new rate.
Example:
Request
Response
rate.delete
rate.deleteDeletes the rate of the given baseAssetCode and quoteAssetCode.
Example:
Request
Response
rate.get
rate.getRetrieves the rate of the given baseAssetCode and quoteAssetCode.
Example:
Request
Response
rate.list
rate.listRetrieves a list of rates.
Example:
Request
Response
rate.patch
rate.patchModifies the details the rate of the given baseAssetCode and quoteAssetCode.
Example:
Request
Response
Transaction
The result of each one of the following transaction methods return one or an array of Transaction objects that include the following methods:
approve: Approves thetransaction.confirm: Confirms thetransaction.fail: Fails thetransaction.getAsset: Returns theassetof thetransactionassetCode.getData: Returns thetransactiondetails.getDestinationAddress: Returns theaddressof thetransactiondestinationAddressif set.getDestinationWallet: Returns thewalletof thetransactiondestinationWalletIdif set.getOriginAddress: Returns theaddressof thetransactionoriginAddressif set.getOriginWallet: Returns thewalletof thetransactionoriginWalletIdif set.getMovements: Returns the relatedmovements.reject: Rejects thetransaction.
transaction.approve
transaction.approveApproves the transaction of the given id.
Example:
Request
Response
transaction.confirm
transaction.confirmConfirms the transaction of the given id.
Example:
Request
Response
transaction.deposit
transaction.depositCreates a new deposit transaction.
Example:
Request
Response
transaction.fail
transaction.failFails the transaction of the given id.
Example:
Request
Response
transaction.get
transaction.getReturns the transaction of the given id.
Example:
Request
Response
transaction.list
transaction.listRetrieves a list of transactions.
Example:
Request
Response
transaction.pay
transaction.payCreates a new pay transaction.
Example:
Request
Response
transaction.reject
transaction.rejectRejects the transaction of the given id.
Example:
Request
Response
transaction.transfer
transaction.transferCreates a new transfer transaction.
Example:
Request
Response
transaction.withdrawal
transaction.withdrawalCreates a new withdrawal transaction.
Example:
Request
Response
User
The result of each one of the following user methods return one or an array of User objects that include the following methods:
approve: Approves theuser.block: Blocks theuser.changePassword: Changes theuserthe password.getData: Returns theuserdetails.getInvites: Returns theinvitesof theuser.getWallets: Returns thewalletsof theuser.getPrimaryWallet: Returns thewalletof theuserprimaryWalletId.getReferralUser: Returns theuserof theuserreferralUserIdif set.patch: Patches theuser.unblock: Unblocks theuser.
user.approve
user.approveApproves the user of the given id.
Example:
Request
Response
user.block
user.blockBlocks the user of the given id.
Example:
Request
Response
user.changePassword
user.changePasswordChanges the user password.
Example:
Request
Response
user.create
user.createCreates a new user.
Example:
Request
Response
user.get
user.getReturns the user of the given id.
Example:
Request
Response
user.list
user.listRetrieves a list of user.
Example:
Request
Response
user.patch
user.patchPatches the details of the user of the given id.
Example:
Request
Response
user.unblock
user.unblockUnblocks the user of the given id.
Example:
Request
Response
Wallet
The result of each one of the following wallet methods return one or an array of Wallet objects that include the following methods:
getActivity: Returns theactivity.getBalance: Returns thebalance.getData: Returns thewalletdetails.getMovements: Returns themovements.getTransactions: Returns thetransactions.getOwner: Returns theuserof thewalletownerId.patch: Patches thewallet.
wallet.activity
wallet.activityReturns the activity of the wallet of the given id.
Example:
Request
Response
wallet.balance
wallet.balanceReturns the balance of the wallet of the given id.
Example:
Request
Response
wallet.create
wallet.createCreates a new wallet.
Example:
Request
Response
wallet.get
wallet.getReturns the wallet of the given id.
Example:
Request
Response
wallet.globalActivity
wallet.globalActivityReturns the globalActivity.
Example:
Request
Response
wallet.globalBalance
wallet.globalBalanceReturns the globalBalance.
Example:
Request
Response
wallet.list
wallet.listReturns a list wallet.
Example:
Request
Response
wallet.movements
wallet.movementsReturns the movments of the wallet of the given id.
Example:
Request
Response
wallet.patch
wallet.patchPatches the details of the wallet of the given id.
Example:
Request
Response
wallet.transactions
wallet.transactionsReturns the transactions of the wallet of the given id.
Example:
Request
Response
Last updated
Was this helpful?