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
Creates 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
Retrieves the address of the given address.
Example:
Request
Response
address.list
Retrieves 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
Creates a new asset.
Example:
Request
Response
asset.get
Retrieves the asset of the given code.
Example:
Request
Response
asset.list
Retrieves a list of assets.
Example:
Request
Response
asset.patch
Modifies 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
Cancels the invite of the given code.
Example:
Request
Response
invite.create
Creates a new invite.
Example:
Request
Response
invite.get
Retrieves the invite of the given code.
Example:
Request
Response
invite.list
Retrieves a list of invites.
Example:
Request
Response
invite.send
Creates and sends a one or multiples invite.
Example:
Request
Response
invite.validate
Validates 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
Returns the movement of the given id.
Example:
Request
Response
movement.list
Retrieves a list of movements.
Example:
Request
Response
Payment Method
paymentMethod.get
Returns the paymentMethod of the given slug.
getData: Returns thepaymentMethoddetails.
Example:
Request
Response
paymentMethod.list
Retrieves 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
Creates a new rate.
Example:
Request
Response
rate.delete
Deletes the rate of the given baseAssetCode and quoteAssetCode.
Example:
Request
Response
rate.get
Retrieves the rate of the given baseAssetCode and quoteAssetCode.
Example:
Request
Response
rate.list
Retrieves a list of rates.
Example:
Request
Response
rate.patch
Modifies 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
Approves the transaction of the given id.
Example:
Request
Response
transaction.confirm
Confirms the transaction of the given id.
Example:
Request
Response
transaction.deposit
Creates a new deposit transaction.
Example:
Request
Response
transaction.fail
Fails the transaction of the given id.
Example:
Request
Response
transaction.get
Returns the transaction of the given id.
Example:
Request
Response
transaction.list
Retrieves a list of transactions.
Example:
Request
Response
transaction.pay
Creates a new pay transaction.
Example:
Request
Response
transaction.reject
Rejects the transaction of the given id.
Example:
Request
Response
transaction.transfer
Creates a new transfer transaction.
Example:
Request
Response
transaction.withdrawal
Creates 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
Approves the user of the given id.
Example:
Request
Response
user.block
Blocks the user of the given id.
Example:
Request
Response
user.changePassword
Changes the user password.
Example:
Request
Response
user.create
Creates a new user.
Example:
Request
Response
user.get
Returns the user of the given id.
Example:
Request
Response
user.list
Retrieves a list of user.
Example:
Request
Response
user.patch
Patches the details of the user of the given id.
Example:
Request
Response
user.unblock
Unblocks 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
Returns the activity of the wallet of the given id.
Example:
Request
Response
wallet.balance
Returns the balance of the wallet of the given id.
Example:
Request
Response
wallet.create
Creates a new wallet.
Example:
Request
Response
wallet.get
Returns the wallet of the given id.
Example:
Request
Response
wallet.globalActivity
Returns the globalActivity.
Example:
Request
Response
wallet.globalBalance
Returns the globalBalance.
Example:
Request
Response
wallet.list
Returns a list wallet.
Example:
Request
Response
wallet.movements
Returns the movments of the wallet of the given id.
Example:
Request
Response
wallet.patch
Patches the details of the wallet of the given id.
Example:
Request
Response
wallet.transactions
Returns the transactions of the wallet of the given id.
Example:
Request
Response
Last updated