platform.getUtxOs RPC Method
パラメータ
住所
[]string
読み込み中...
上限
int
読み込み中...
startIndex
オブジェクト
読み込み中...
住所
文字列
読み込み中...
utxo
文字列
読み込み中...
sourceChain
文字列
読み込み中...
encoding
文字列
読み込み中...
返品
numFetched
文字列
読み込み中...
utxos
[]string
読み込み中...
endIndex
オブジェクト
読み込み中...
住所
文字列
読み込み中...
utxo
文字列
読み込み中...
encoding
文字列
読み込み中...
リクエスト
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--ヘッダー 'Content-Type: application/json' \3--data-raw '{4"jsonrpc": "2.0",5"id": 1,6"method": "platform.getUTXOs",7"params": {8"addresses": [9"P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"10],11"sourceChain": "X",12"limit": 5,13"encoding": "hex"14}15}'
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--ヘッダー 'Content-Type: application/json' \3--data-raw '{4"jsonrpc": "2.0",5"id": 1,6"method": "platform.getUTXOs",7"params": {8"addresses": [9"P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"10],11"sourceChain": "X",12"limit": 5,13"encoding": "hex"14}15}'
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"addresses": ["P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"],9"sourceChain": "X",10"limit": 5,11"encoding": "hex",12};13const result = await provider.send("platform.getUTXOs", params);14コンソール.log(結果);15})();16
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"addresses": ["P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"],9"sourceChain": "X",10"limit": 5,11"encoding": "hex",12};13const result = await provider.send("platform.getUTXOs", params);14コンソール.log(結果);15})();16
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"addresses":["P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"],5"sourceChain": "X",6"limit": 5,7"encoding": "hex"8}9request = w3.provider.make_request('platform.getUTXOs', [params])10print(request)11
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"addresses":["P-avax1tnuesf6cqwnjw7fxjyk7lhch0vhf0v95wj5jvy"],5"sourceChain": "X",6"limit": 5,7"encoding": "hex"8}9request = w3.provider.make_request('platform.getUTXOs', [params])10print(request)11