platform.getUtxOs RPC Method
매개변수
addresses
[]string
로딩 중...
limit
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);14console.log(result);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);14console.log(result);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