Get SOPH Balance for a Single Address
Returns the SOPH balance of a given address.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=balance
&address=0xe85B66fCA403bc35bcAE17CE7758e942aEa65Dc0
&tag=latest
&apikey=YourApiKeyToken
Try this endpoint in your browser
Query Parameters
the string
representing the address to check for balance
the string
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
{
"status":"1",
"message":"OK",
"result":"79446094322639892029837"
}
Get SOPH Balance for Multiple Addresses in a Single Call
Returns the balance of the accounts from a list of addresses.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=balancemulti
&address=0xe85B66fCA403bc35bcAE17CE7758e942aEa65Dc0,0xD64e136566a9E04eb05B30184fF577F52682D182,0x78Ae12562527B865DD1a06784a2b06dbe1A3C7AF
&apikey=YourApiKeyToken
Query Parameters
the strings
representing the addresses to check for balance, separated by ,
commas
up to 20 addresses per call
the integer
pre-defined block parameter, either earliest
, pending
or latest
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"account": "0xe85B66fCA403bc35bcAE17CE7758e942aEa65Dc0",
"balance": "79446094322639892029837"
},
{
"account": "0xD64e136566a9E04eb05B30184fF577F52682D182",
"balance": "18408780330060242705999"
},
{
"account": "0x78Ae12562527B865DD1a06784a2b06dbe1A3C7AF",
"balance": "1904880225546473984864"
}
]
}
Get a list of 'Normal' Transactions By Address
Returns the list of transactions performed by an address, with optional pagination.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=txlist
&address=0xe85B66fCA403bc35bcAE17CE7758e942aEa65Dc0
&startblock=0
&endblock=99999999
&page=1
&offset=2
&sort=asc
&apikey=YourApiKeyToken
Query Parameters
the string
representing the addresses to check for balance
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"blockNumber": "6",
"timeStamp": "1720631187",
"hash": "0x98e34cc20d0e8d41a17892c839716f5daa3cf42db2c3d718eff30ca13ebc3efc",
"nonce": "0",
"blockHash": "0x958d516455719e2fad7d28f445dc18ac68922186aa4923358f4ea5cdb8e1d6db",
"transactionIndex": "0",
"from": "0x8f1916dd27c304047b159403795bfde09347251f",
"to": "0xe85b66fca403bc35bcae17ce7758e942aea65dc0",
"value": "10000000000000000000",
"gas": "420890",
"gasPrice": "4108507619500",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "0",
"gasUsed": "330896",
"confirmations": "47011",
"methodId": "0x",
"functionName": ""
},
{
"blockNumber": "8",
"timeStamp": "1720631207",
"hash": "0xe41d64bf989235d202a2d8c22b3998969b4ffdb0ea43cdc0702da1f5ad0b77db",
"nonce": "0",
"blockHash": "0xe107fc57923b42642000509be14443832e90b921a1574065aa4d24c8bc252277",
"transactionIndex": "0",
"from": "0xe85b66fca403bc35bcae17ce7758e942aea65dc0",
"to": "0xe85b66fca403bc35bcae17ce7758e942aea65dc0",
"value": "1",
"gas": "273786",
"gasPrice": "100000000",
"isError": "0",
"txreceipt_status": "1",
"input": "0x",
"contractAddress": "",
"cumulativeGasUsed": "0",
"gasUsed": "180730",
"confirmations": "47009",
"methodId": "0x",
"functionName": ""
}
]
}
Get a list of 'Internal' Transactions by Address
Returns the list of internal transactions performed by an address, with optional pagination.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=txlistinternal
&address=0x8f1916dd27c304047b159403795bfde09347251f
&startblock=0
&endblock=99999999
&page=1
&offset=2
&sort=asc
&apikey=YourApiKeyToken
Query Parameters
the string
representing the addresses to check for balance
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"blockNumber": "2",
"timeStamp": "1720611191",
"hash": "0xd7999f3a975835afb95aaec5b3f77ed3228cb690d9c65e6135b74a56589a8e38",
"from": "0x8f1916dd27c304047b159403795bfde09347251f",
"to": "0x0000000000000000000000000000000000008009",
"value": "0",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "70617051",
"gasUsed": "35878",
"traceId": "0_1_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "2",
"timeStamp": "1720611191",
"hash": "0xd7999f3a975835afb95aaec5b3f77ed3228cb690d9c65e6135b74a56589a8e38",
"from": "0x8f1916dd27c304047b159403795bfde09347251f",
"to": "0x0000000000000000000000000000000000008006",
"value": "0",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "69513066",
"gasUsed": "34900",
"traceId": "0_1_1_1",
"isError": "0",
"errCode": ""
}
]
}
Get 'Internal Transactions' by Transaction Hash
Returns the list of internal transactions performed within a transaction.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=txlistinternal
&txhash=0xd7999f3a975835afb95aaec5b3f77ed3228cb690d9c65e6135b74a56589a8e38
&apikey=YourApiKeyToken
Query Parameters
the string
representing the transaction hash to check for internal transactions
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"blockNumber": "2",
"timeStamp": "1720611191",
"from": "0x8f1916dd27c304047b159403795bfde09347251f",
"to": "",
"value": "0",
"contractAddress": "0x71153624281cebf645810b798f5a5c8eb15f1ef0",
"input": "",
"type": "create",
"gas": "68397021",
"gasUsed": "127",
"isError": "0",
"errCode": ""
}
]
}
The isError
field returns 0
for successful transactions and 1
for rejected/cancelled transactions.
Get "Internal Transactions" by Block Range
Returns the list of internal transactions performed within a block range, with optional pagination.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=txlistinternal
&startblock=1000
&endblock=1500
&page=1
&offset=2
&sort=asc
&apikey=YourApiKeyToken
Query Parameters
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"blockNumber": "1000",
"timeStamp": "1720828091",
"hash": "0x198adf63079eb4fb325143027e4fdd201a9f1bcabebbd9de3c93281944f6dbab",
"from": "0x0000000000000000000000000000000000008001",
"to": "0x000000000000000000000000000000000000800b",
"value": "0",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "4227738417",
"gasUsed": "359",
"traceId": "0_1",
"isError": "0",
"errCode": ""
},
{
"blockNumber": "1000",
"timeStamp": "1720828091",
"hash": "0x198adf63079eb4fb325143027e4fdd201a9f1bcabebbd9de3c93281944f6dbab",
"from": "0x0000000000000000000000000000000000008001",
"to": "0x0000000000000000000000000000000000008002",
"value": "0",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "4227736275",
"gasUsed": "256",
"traceId": "0_1_1",
"isError": "0",
"errCode": ""
}
]
}
The isError
field returns 0
for successful transactions and 1
for rejected/cancelled transactions.
Get a list of 'ERC20 - Token Transfer Events' by Address
Returns the list of ERC-20 tokens transferred by an address, with optional filtering by token contract.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=tokentx
&contractaddress=0x000000000000000000000000000000000000800A
&address=0x950e3Bb8C6bab20b56a70550EC037E22032A413e
&page=1
&offset=2
&startblock=0
&endblock=99999999
&sort=asc
&apikey=YourApiKeyToken
Usage:
ERC-20 transfers from an address, specify the address
parameter
ERC-20 transfers from a contract address, specify the contract address
parameter
ERC-20 transfers from an address filtered by a token contract, specify both address
and contract address
parameters.
Query Parameters
the string
representing the address to check for balance
the string
representing the token contract address to check for balance
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"blockNumber": "3905",
"timeStamp": "1721403137",
"hash": "0xe5406249398a0a1f09c97b8f8043570a57f7b90507f8791a13e4c87bd4116d8d",
"nonce": "28",
"blockHash": "0xb7cf94c94cb4e0c44782593c111f142d5989971fb543a26503d9c1f301679272",
"from": "0xc5fa0375e2554254e66f19b5def5ee61d59116a2",
"contractAddress": "0x000000000000000000000000000000000000800a",
"to": "0x950e3bb8c6bab20b56a70550ec037e22032a413e",
"value": "500000000000000000",
"tokenName": "Ether",
"tokenSymbol": "ETH",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "768337",
"gasPrice": "100000000",
"gasUsed": "378490",
"cumulativeGasUsed": "0",
"input": "deprecated",
"confirmations": "43116"
},
{
"blockNumber": "3906",
"timeStamp": "1721403252",
"hash": "0xe32480a79a5d77514b821cf9c457587c0ee1f8f49ad3e5f3375df05a7bb4eb38",
"nonce": "15",
"blockHash": "0xc7f3e3935c2dc332002b1f2f942ac18a64e2a26f2de578406e54a771eca582d3",
"from": "0x950e3bb8c6bab20b56a70550ec037e22032a413e",
"contractAddress": "0x000000000000000000000000000000000000800a",
"to": "0x0000000000000000000000000000000000008001",
"value": "201419500000000",
"tokenName": "Ether",
"tokenSymbol": "ETH",
"tokenDecimal": "18",
"transactionIndex": "0",
"gas": "2014195",
"gasPrice": "100000000",
"gasUsed": "1261254",
"cumulativeGasUsed": "0",
"input": "deprecated",
"confirmations": "43115"
}
]
}
Get a list of 'ERC721 - Token Transfer Events' by Address
Returns the list of ERC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract
https://api-sepolia.sophscan.xyz/api
?module=account
&action=tokennfttx
&contractaddress=0x690A56FD193649eD953FFb70F351087Cf83E5DB7
&address=0x0000000000000000000000000000000000000000
&page=1
&offset=2
&startblock=0
&endblock=99999999
&sort=asc
&apikey=YourApiKeyToken
Usage:
ERC-721 transfers from an address, specify the address
parameter
ERC-721 transfers from a contract address, specify the contract address
parameter
ERC-721 transfers from an address filtered by a token contract, specify both address
and contract address
parameters.
Query Parameters
the string
representing the address to check for balance
the string
representing the token contract address to check for balance
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"blockNumber": "16664",
"timeStamp": "1724859892",
"hash": "0xcbb3cb5a3474b955ac06c11c31dcdae054d7e2a34e90ffdac62779b577f671a7",
"nonce": "163",
"blockHash": "0x68ab66a08c968ba8c0468cc94e7564ac2b67707b7df23539c9084a35117b73a4",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x690a56fd193649ed953ffb70f351087cf83e5db7",
"to": "0x02c95459ba17d599fe8dadbfec8e1e6281ffa8e4",
"tokenID": "0",
"tokenName": "Colored Squares",
"tokenSymbol": "SQUARE",
"tokenDecimal": "0",
"transactionIndex": "0",
"gas": "393373",
"gasPrice": "1019175000000",
"gasUsed": "271213",
"cumulativeGasUsed": "0",
"input": "deprecated",
"confirmations": "30365"
},
{
"blockNumber": "16676",
"timeStamp": "1724862333",
"hash": "0x0943185b7a388e34df3f941821a3a1f38d2966a8a13c9f9d406db0de1bc673bf",
"nonce": "164",
"blockHash": "0xefe4dbe0d944ca08de14d72e980a60cff48fdce418469bea75c973f29eeb33a1",
"from": "0x0000000000000000000000000000000000000000",
"contractAddress": "0x690a56fd193649ed953ffb70f351087cf83e5db7",
"to": "0x02c95459ba17d599fe8dadbfec8e1e6281ffa8e4",
"tokenID": "1",
"tokenName": "Colored Squares",
"tokenSymbol": "SQUARE",
"tokenDecimal": "0",
"transactionIndex": "0",
"gas": "348865",
"gasPrice": "1005450000000",
"gasUsed": "263505",
"cumulativeGasUsed": "0",
"input": "deprecated",
"confirmations": "30353"
}
]
}
Get a list of 'ERC1155 - Token Transfer Events' by Address
Returns the list of ERC-1155 ( NFT ) tokens transferred by an address, with optional filtering by token contract
https://api-sepolia.sophscan.xyz/api
?module=account
&action=token1155tx
&contractaddress=0x31225ffF34ebB599D018A22d2430c2e4fdE32eCa
&address=0x8a5847fd0e592b058c026c5fdc322aee834b87f5
&page=1
&offset=100
&startblock=0
&endblock=99999999
&sort=asc
&apikey=YourApiKeyToken
Usage:
ERC-1155 transfers from an address, specify the address
parameter
ERC-1155 transfers from a contract address, specify the contract address
parameter
ERC-1155 transfers from an address filtered by a token contract, specify both address
and contract address
parameters.
Query Parameters
the string
representing the address to check for balance
the string
representing the token contract address to check for balance
the integer
page number, if pagination is enabled
the number of transactions displayed per page
the integer
block number to start searching for transactions
the integer
block number to stop searching for transactions
the sorting preference, use asc
to sort by ascending and desc
to sort by descending
Sample Response
{
"status":"1",
"message":"OK",
"result":[
{
"blockNumber":"922742",
"timeStamp":"1650258658",
"hash":"0xe2e18e8831556beff9e08a9f04e0fd38fe290c9b62a49021cfa6b23cbd8900a3",
"nonce":"2",
"blockHash":"0xd3e6974bd02372a60e60399fe71f9f3972b5cb1d409e7751abfcadb302655e19",
"from":"0x0000000000000000000000000000000000000000",
"contractAddress":"0x31225fff34ebb599d018a22d2430c2e4fde32eca",
"to":"0x8a5847fd0e592b058c026c5fdc322aee834b87f5",
"tokenID":"1",
"tokenName":"Calcium",
"tokenSymbol":"CALC",
"tokenDecimal":"0",
"transactionIndex":"0",
"gas":"90805",
"gasPrice":"2000000007",
"gasUsed":"90805",
"cumulativeGasUsed":"90805",
"input":"deprecated",
"confirmations":"193136"
}
]
}
Get list of Blocks Mined by Address
Returns the list of blocks mined by an address.
https://api-sepolia.sophscan.xyz/api
?module=account
&action=getminedblocks
&address=0x0000000000000000000000000000000000000000
&blocktype=blocks
&page=1
&offset=10
&apikey=YourApiKeyToken
Query Parameters
the string
representing the address to check for balance
the string
pre-defined block type, either blocks
for canonical blocks or uncles
for uncle blocks only
the integer
page number, if pagination is enabled
the number of transactions displayed per page
Sample Response
{
"status": "1",
"message": "OK-Missing/Invalid API Key, rate limit of 1/3sec applied",
"result": [
{
"blockNumber": "47029",
"timeStamp": "1728360659",
"blockReward": "0"
},
{
"blockNumber": "47028",
"timeStamp": "1728360599",
"blockReward": "0"
}
]
}