mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Create MYAPI
This commit is contained in:
parent
4e24b07b38
commit
e5b5f4ad39
33
MYAPI
Normal file
33
MYAPI
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
const url = 'https://worldchain-mainnet.g.alchemy.com/v2/ENlAMApDaMPDrLe2zxcdjQpBsWoqEgqt';
|
||||||
|
const headers = {
|
||||||
|
'Accept': 'application/json',
|
||||||
|
'Content-Type': 'application/json'
|
||||||
|
};
|
||||||
|
|
||||||
|
const body = JSON.stringify({
|
||||||
|
id: 1,
|
||||||
|
jsonrpc: "2.0",
|
||||||
|
method: "alchemy_getAssetTransfers",
|
||||||
|
params: [
|
||||||
|
{
|
||||||
|
fromBlock: "0x0",
|
||||||
|
toBlock: "latest",
|
||||||
|
toAddress: "0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1",
|
||||||
|
withMetadata: false,
|
||||||
|
excludeZeroValue: true,
|
||||||
|
maxCount: "0x3e8",
|
||||||
|
category: [
|
||||||
|
"external"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
fetch(url, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: headers,
|
||||||
|
body: body
|
||||||
|
})
|
||||||
|
.then(response => response.json())
|
||||||
|
.then(data => console.log(data))
|
||||||
|
.catch(error => console.error('Error:', error));
|
Loading…
Reference in New Issue
Block a user