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 the asset of the address assetCode.

  • getData: Returns the address details.

  • getWallet: Returns the wallet of the address walletId if 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 the connection of the asset connectionId if set.

  • getData: Returns the asset details.

  • patch: Patches the asset.

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 the invite.

  • getData: Returns the invite details.

  • getInvitedUser: Returns the user of the invite invitedUserId if set.

  • getInviterUser: Returns the user of the invite inviterUserId if set.

  • validate: Validates the invite.

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 the asset of the movement assetCode.

  • getData: Returns the movement details.

  • getWallet: Returns the wallet of the movement walletId.

  • getTransaction: Returns the transaction of the movement transactionId.

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 the paymentMethod details.

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 the asset of the rate baseAssetCode.

  • getData: Returns the rate details.

  • getQuoteAsset: Returns the asset of the rate quoteAssetCode.

  • patch: Patches the rate.

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 the transaction.

  • confirm: Confirms the transaction.

  • fail: Fails the transaction.

  • getAsset: Returns the asset of the transaction assetCode.

  • getData: Returns the transaction details.

  • getDestinationAddress: Returns the address of the transaction destinationAddress if set.

  • getDestinationWallet: Returns the wallet of the transaction destinationWalletId if set.

  • getOriginAddress: Returns the address of the transaction originAddress if set.

  • getOriginWallet: Returns the wallet of the transaction originWalletId if set.

  • getMovements: Returns the related movements.

  • reject: Rejects the transaction.

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 the user.

  • block: Blocks the user.

  • changePassword: Changes the user the password.

  • getData: Returns the user details.

  • getInvites: Returns the invites of the user.

  • getWallets: Returns the wallets of the user.

  • getPrimaryWallet: Returns the wallet of the user primaryWalletId.

  • getReferralUser: Returns the user of the user referralUserId if set.

  • patch: Patches the user.

  • unblock: Unblocks the user.

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 the activity.

  • getBalance: Returns the balance.

  • getData: Returns the wallet details.

  • getMovements: Returns the movements.

  • getTransactions: Returns the transactions.

  • getOwner: Returns the user of the wallet ownerId.

  • patch: Patches the wallet.

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

Was this helpful?