diff --git a/404.html b/404.html index 38e6171df..05e91a74a 100644 --- a/404.html +++ b/404.html @@ -4,7 +4,7 @@
By sending a POST
request to /mint
or JSON-RPC
request with method name devnet_mint
for a token, you initiate a transaction on that token's ERC20 contract. The response contains the hash of this transaction, as well as the new balance after minting. The token is specified by providing the unit, and defaults to WEI
.
The value of amount
is in WEI and needs to be an integer (or a float whose fractional part is 0, e.g. 1000.0
or 1e21
)
The value of amount
is in WEI or FRI. The precision is preserved if specifying an integer or a float whose fractional part is zero (e.g. 1000.0
, 1e21
). If the fractional part is non-zero, the amount is truncated to the nearest integer (e.g. 3.9
becomes 3
and 1.23e1
becomes 12
).
POST /mint
{
"address": "0x6e3205f...",
"amount": 500000,
"unit": "WEI" | "FRI"
}
JSON-RPC
{
"jsonrpc": "2.0",
"id": "1",
"method": "devnet_mint",
"params": {
"address": "0x6e3205f...",
"amount": 500000,
"unit": "WEI" | "FRI"
}
}
Response:
diff --git a/docs/next/blocks/index.html b/docs/next/blocks/index.html index dbb2ac9c8..e841b3733 100644 --- a/docs/next/blocks/index.html +++ b/docs/next/blocks/index.html @@ -4,7 +4,7 @@