Create an Account
Create a New Account
const response = await fetch('http://localhost:9090/wallet/v2', {
method: 'POST',
body: `{
"method": "create_account",
"params": {
"name": "Joshua Goldbard",
},
"jsonrpc": "2.0",
"id": 1
}`,
headers: {
'Content-Type': 'application/json'
}
});
const myJson = await response.json();
account = myJson.result.accountfrom mobilecoin.client import ClientSync
client = ClientSync()
account = client.create_account()
print(account)curl -s localhost:9090/wallet/v2 \
-X POST \
-H 'Content-type: application/json' \
-d '{
"method": "create_account",
"params": {},
"jsonrpc": "2.0",
"id": 1
}' \
| jqImport an Existing Account
Last updated
Was this helpful?