API Reference
Note: The API is still in beta and subject to change
Last updated
Note: The API is still in beta and subject to change
Last updated
GET
https://api.swaye.me/user
Returns the logged in users details
Name | Type | Description |
---|---|---|
GET
https://api.swaye.me/user/balance
Returns the native token balance of the logged in user
GET
https://api.swaye.me/user/accounts
Get accounts (wallets) for a user
GET
https://api.swaye.me/block/:number
GET
https://api.swaye.me/block/lastestBlockNumber
GET
https://api.swaye.me/chain/chainId
Returns the chain Id associated with the client
POST
https://api.swaye.me/contract/call
POST
https://api.swaye.me/transaction/submit
GET
https://api.swaye.me/transaction/:hash
GET
https://api.swaye.me/transaction/:hash/receipt
GET
https://api.swaye.me/erc20/balance/:address
GET
https://api.swaye.me/erc20/allowance/:address
GET
https://api.swaye.me/erc20/totalSupply/:address
POST
https://api.swaye.me/erc20/transfer
POST
https://api.swaye.me/erc20/approve
POST
https://api.swaye.me/erc20/transferFrom
GET
https://api.swaye.me/erc721/balance/:address
Returns the total tokens owned by the user
GET
https://api.swaye.me/erc721/approved/:address/:tokenId
Returns the approved addresses for a token
GET
https://api.swaye.me/erc721/tokenOfOwnerByIndex/:address
Returns the token id for an owner at an index of their holdings
E.G:
Get Balance returns "2", meaning two tokens are owned. Index 0 would be used to retrieve the first token, and 1 for the second
GET
https://api.swaye.me/erc721/getAllTokensOfOwner/:addresss
Returns an array of tokenIds
GET
https://api.swaye.me/erc721/tokenURI/:address/:tokenId
POST
https://api.swaye.me/erc721/transferFrom
POST
https://api.swaye.me/erc721/approve
POST
https://api.swaye.me/erc721/safeTrasferFrom
POST
https://api.swaye.me/erc721/setApprovalForAll
Sets or unsets the approval of a given operator An operator is allowed to transfer all tokens of the sender on their behalf.
POST
https://api.swaye.me
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Authorization*
String
Bearer token received via OAuth
Authorization*
String
Bearer token received via OAuth
Authorization*
String
Bearer token received via OAuth
number*
String
Block Number
Authorization*
String
Bearer token received via OAuth
Authorization*
String
Bearer token received via OAuth
Authorization*
String
Bearer token received via OAuth
Authorization*
String
Bearer token received via OAuth
functionSignature*
String
Signature of function
params*
String
Params in matching order of function signature
contractAddress*
String
Address of contract to call
Authorization*
Bearer ....
Bearer token received via OAuth
functionSignature*
String
params*
String
contractAddress*
String
value
String
hash*
String
TransactionHash
Authorization*
String
Bearer token received via OAuth
hash*
String
Transaction hash
Authorization*
String
Bearer token received via OAuth
address*
String
Contract Address
Authorization*
String
Bearer token received via OAuth
address*
String
Contract Address
owner*
String
Owner Address
spender*
String
Spender Address
Authorization*
String
Bearer token received via OAuth
address*
String
Contract address
Authorization*
String
Bearer token received via OAuth
Authorization*
Bearer token received via OAuth
contractAddress*
String
Contract Address
amount*
String
Amount in wei
address*
String
Receiver address
Authorization*
String
Bearer token received via OAuth
contractAddress*
String
Contract Address
amount*
String
Amount in wei
address*
String
Spender Address
Authorization*
Bearer
Bearer token received via OAuth
contractAddress*
String
Contract Address
from*
String
From address
to*
String
Recipient Address
amount*
String
Amount in Wei
address*
String
Contract Address
address*
String
Owner Address
Authorization*
String
Bearer token received via OAuth
address*
String
Contract Address
tokenId*
String
Token ID
Authorization*
String
Bearer token received via OAuth
address*
String
Contract Address
owner*
String
Owner address
index*
String
token Index
Authorization*
String
Bearer token received via OAuth
address*
String
Contract address
owner*
String
Owner address
Authorization*
String
Bearer token received via OAuth
address*
String
Contract Address
tokenId*
String
Token Id
Authorization*
String
Bearer token received via OAuth
Authorization*
String
Bearer token received via OAuth
from*
String
From address
to*
String
To address
tokenId*
String
Token Id
contractAddress*
String
Contract address
Authorization*
String
Bearer token received via OAuth
contractAddress*
String
Contract Address
tokenId*
String
approvedAddresss*
String
Address to be approved
Authorization*
String
Bearer token received via OAuth
from*
String
Sender address
to*
String
Receiver Address
contractAddress*
String
Contract Address
tokenId*
String
Token Id
Authorization*
String
Bearer token received via OAuth
operator*
String
Operator address
approved*
boolean
contractAddress*
String
Contract address
Authorization*
String
Bearer token received via OAuth
owner*
String
Owner Address
operator*
String
Operator Address
contractAddress*
String
Contract Address